home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-27 | 7.3 KB | 180 lines | [TEXT/R*ch] |
- Summary of Simple Marked Text (MTX) Format
- Version 1.3.2 - 4/27/96 by Richard Rathe
-
- General Considerations
-
- Source file names have an .mtx extension.
- HTML file names have an .html extension.
- Files contain only ASCII characters
- (return, linefeed, tab, space to ~).
- Paragraphs are delimited by blank lines. Extra blank
- lines will be eliminated. Adjacent lines will be
- combined into a single paragraph.
- Lines indented with spaces or tabs will become an item
- in a list.
- Items marked by a "N" use Netscape HTML extensions. For
- maximum compatibility, avoid these tags.
- The %HOME, %PARENT, %PREV, %NEXT and table tags have
- changed since version 1.2. You may need to update
- older MTX files to be compatible.
-
- Special Tags
-
- %TITLE title - title for HTML page
- N%TITLE $title - title with centered heading
- %HEADING none - supress heading
- %HEADING heading - heading different from title
- N%HEADING $heading - centered heading
- %FILE name - name for HTML file
- %IMAGES path - path for image files
- %LOGO name - title inline graphic (.gif)
- N%LOGO $name - centered title graphic (.gif)
- %ICON name - heading inline graphic (.gif)
- N%WATERMARK name - watermark graphic (.gif)
- N%COLORS colors - background and text colors
- %HOME text - label for home document
- %HOMEURL url - URL for home document
- %HOMEURL none - no URL for home document
- %PARENT text - label for parent document
- %PARENTURL url - URL for parent document
- %PARENTURL none - no URL for parent document
- %INDEX text - label for index document
- %INDEXURL url - URL for index document
- %INDEXURL none - no URL for index document
- %PREV text - label for previous document
- %PREVURL url - URL for previous document
- %PREVURL none - no URL for previous document
- %NEXT text - label for next document
- %NEXTURL url - URL for next document
- %NEXTURL none - no URL for next document
- %BASE path - path for relative URLs
- %PATH path - path for document only
- %AUTHOR text - author or copyright info
- %AUTHURL url - URL for author or copyright
- %VERSION text - document version info
- %VERSURL url - URL for document version
- %OUTLINE none - no outline
- %OUTLINE long - long outline
- %LAYOUT cover - suppress administrative info
- %LAYOUT print - suppress navigation info
- %LAYOUT keyword - file contains a keyword list
- %LAYOUT noindex - suppress indexing of this file
- %LAYOUT feedback - override feedback suppression
- %LAYOUT nofeedback - suppress feedback for all questions
- N%LAYOUT slide - presentation slide format
- N%REFRESH seconds - client pull refresh
- N%REFRESH secs url - client pull refresh with link
- %COUNTER date url - counter date and cgi url
- %MTX version - MTX format version
- %any other text - comment line (ignored)
-
- NOTE: Each document will have a short outline at the top
- unless otherwise specified. Links to email addresses
- will be prefixed with "mailto:" automatically. Default
- "Home," "Parent," "Previous," and "Next" labels will
- be used if not otherwise specified.
-
- Heading Tags (must occur at the beginning of line)
-
- #heading text - primary outline heading
- ##heading text - secondary outline heading
- ###... - up to ##### (5) levels deep
- N#$heading text - centered heading
- #text#url name - heading link to url outside document
- #text#=anchor name - use heading as named anchor
-
- NOTE: Any text that precedes the first #heading will
- appear just after the title and before the outline.
-
- Embedded Tags (can occur anywhere)
-
- {B} - line break
- {P} - paragraph break
- {S} - non-breaking space
- {*text*} - strong (bold) text
- {!text!} - emphasized (italics) text
- {@text@} - fixed font text
- {=name=} - inline graphic (.gif)
- {=name text=} - inline graphic with alternate text
- {+name+} - inline (.gif) with linked (.jpg) graphic
- {+name text+} - inline graphic with alternate text
- {-name-} - inline (.gif) with linked (.gif) graphic
- {-name text-} - inline graphic with alternate text
- {#name#} - inline (.gif) with linked (.html) file
- {#name text#} - inline graphic with alternate text
- {#url##} - link to quoted url
- {#text#url#} - link to url
- {#text#anchor#} - link to named anchor
- {#text#=anchor#} - create named anchor
- N{=name alignment=} - floating graphic (.gif)
- N{+name alignment+} - floating graphic (.gif+.jpg)
- N{-name alignment-} - floating graphic (.gif+.gif)
- N{C} - clear floating graphic alignment
-
- NOTE: File extensions (.gif, .jpg and .html) are
- automatically added to file names. Linked .gif files
- have an "L" added to the name (pictureL.gif). Anchor
- names are case sensitive (#name <> #NAME). Links to
- email addresses will be prefixed with "mailto:"
- automatically. Graphic alignment may be either "left"
- or "right." Floating graphic alignment must be cleared
- using {CLEAR}. Alignment must be before alternate text.
-
- List Tags (must occur after leading white space)
-
- text - bulleted list item
- #text - numbered list item (1, 2, 3...)
- N@text - lettered list item (a, b, c...)
- N!text - roman numbered list item (I, II, III...)
- +text - glossary list title item (bold)
- -text - glossary list definition
-
- NOTE: Lists may be nested by using variable amounts
- of leading white space.
-
- Format Tags (must occur at the beginning of line)
-
- 'text - block quote
- N''text - pull quote
- =text - preformatted text
- N$text - centered text
- ----- - horizontal rule (one or more dashes)
-
- Question Tags (must occur at the beginning of line)
-
- ?x - begin question (simple feedback)
- ?xyz - begin question (multiple correct answers)
- ?x? - begin question (extended feedback)
- ?x?none - begin question (suppress feedback)
- question text - question text
- @answer text - answer text
- feedback text - indented at least one space
-
- NOTE: Questions may have up to 26 (A-Z) answer choices.
- Inline graphics may be used as part of any question,
- answer, or feedback element.
-
- Tables (each line must begin with "|") (N)
-
- The first line must be one of the following:
- | - no caption
- |none - no caption
- |caption text - caption text
- |caption|noborder - caption for table with no border
- |caption|nowide - caption for minimal width table
- |caption|noblanks - caption for table with no blanks
- |caption|nowide|noborder|noblanks - combination of above
- Subsequent lines can be variations of the following:
- |text 1|text 2|text 3 - row with three cells
- |text 1||text 3 - use empty cells where needed
- |text 1|two |text 3 - cells may be padded with spaces
- |text 1|* |text 3 - non-blank empty cell use "*"
- |*col 1|*col 2|*col 3 - column headings begin with "*"
- |*row 1|text 1|text 2 - row headings begin with "*"
-
- NOTE: Each line becomes one row in the table. Cells may
- contain graphics or hypertext links. Use {BR} to force
- word wrap within a cell. By default, tables will have
- borders, blanks for empty cells, and resize to cover 95%
- of the window side to side.
-